vcpkg_from_github(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO uNetworking/uWebSockets
    REF 02ad3979a61cc4df9c15f2c776a7bbe2ba6dd09e #v0.16.5
    SHA512 1527f0a45bdab8426d76e38b0f36baf7567a2e6a045187730855b632841c6c6a45a54fca05d9a1200301dfa0b7a5f43a885cf2c07896c05ee93f45b4cb5c726a
    HEAD_REF master
)

file(COPY ${SOURCE_PATH}/src  DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(RENAME ${CURRENT_PACKAGES_DIR}/include/src ${CURRENT_PACKAGES_DIR}/include/uwebsockets/)

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
